//
// Typesetting
// --------------------------------------------------

h1, h2, h3, h4, h5, h6, 
.h1, .h2, .h3, .h4, .h5, .h6 {
    line-height: $headings-line-height;
    color: $headings-color;
    font-family: $headings-font-family;
    font-weight: $headings-font-weight;
    
    small, 
    .small {
        line-height: 1;
        color: $color-gray-light;
        font-weight: normal;
    }
}

h1, .h1, 
h2, .h2, 
h3, .h3 {
    margin-top: $line-height-computed;
    margin-bottom: ($line-height-computed / 2);
    
    small, 
    .small {
        font-size: 65%;
    }
}
h4, .h4, 
h5, .h5, 
h6, .h6 {
    margin-top: ($line-height-computed / 2);
    margin-bottom: ($line-height-computed / 2);
  
    small, 
    .small {
        font-size: 75%;
    }
}

h1, .h1 {
    font-size: $font-size-h1;
}
h2, .h2 {
    font-size: $font-size-h2;
}
h3, .h3 {
    font-size: $font-size-h3;
}
h4, .h4 {
    font-size: $font-size-h4;
}
h5, .h5 {
    font-size: $font-size-h5;
}
h6, .h6 {
    font-size: $font-size-h6;
}

p {
    margin: 0 0 ($line-height-computed / 2) 0;
}

.lead {
    margin-bottom: $line-height-computed;
    line-height: 1.4;
    font-size: floor(($font-size-base * 1.15));
    font-weight: 400;
}

small, 
.small {
    font-size: floor((100% * $font-size-small / $font-size-base));
}

mark, 
.mark {
    padding: .2em;
    background-color: $state-warning-bg;
}

// Alignment
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-justify { text-align: justify; }
.text-nowrap { white-space: nowrap; }

// Transformation
.text-lowercase { text-transform: lowercase; }
.text-uppercase { text-transform: uppercase; }
.text-capitalize { text-transform: capitalize; }

// Contextual colors
.text-muted {
    color: $color-gray-light;
}

// Page header
// -------------------------

.page-header {
    margin: ($line-height-computed * 2) 0 $line-height-computed;
    padding-bottom: (($line-height-computed / 2) - 1);
    border-bottom: 1px solid $color-gray-lighter;
}

// Lists
// -------------------------

// List options
@mixin list-unstyled {
    list-style: none;
    padding-left: 0;
}

.list-inline {
    @include list-unstyled;
    margin-left: -5px;
  
    > li {
        display: inline-block;
        *display: inline;
        *zoom: 1;
        padding-left: 5px;
        padding-right: 5px;
    }
}

// Misc
// -------------------------

abbr[title], 
abbr[data-original-title] {
    border-bottom: 1px dotted $color-gray-light;
    text-decoration: none;
    cursor: help;
}
// Addresses
address {
    margin-bottom: $line-height-computed;
    line-height: $line-height-base;
    font-style: normal;
}
.initialism {
    font-size: 90%;
    text-transform: uppercase;
}

// Blockquotes
blockquote {
    margin: 0 0 $line-height-computed 0;
    padding: ($line-height-computed / 2) $line-height-computed;
    border-left: 5px solid $color-gray-lighter;
    font-size: ($font-size-base * 1.25);

    p, 
    ul, 
    ol {
        &:last-child {
            margin-bottom: 0;
        }
    }
    
    footer, 
    small, 
    .small {
        display: block;
        line-height: $line-height-base;
        color: $color-gray-light;
        font-size: 80%;
        
        &:before {
            content: '\2014 \00A0';
        }
    }
}

// Opposite alignment of blockquote
.blockquote-reverse, 
blockquote.pull-right {
    padding-right: 15px;
    padding-left: 0;
    border-right: 5px solid $color-gray-lighter;
    border-left: 0;
    text-align: right;
  
    // Account for citation
    footer, 
    small, 
    .small {
        &:before {
            content: '';
        }
        &:after {
            content: '\00A0 \2014';
        }
    }
}